import QtQuick 2.12
import QtQuick.Controls 2.12

ToolButton {
    id: toolButton
    property alias arrow: arrow

    property var sonMenu: null

    width: 40
    height: 60

    icon.source: "qrc:/image/myMenu.svg"
    icon.color: "transparent"
    icon.width: 40
    icon.height: 40
    padding: 0

    display: AbstractButton.TextBesideIcon
    background: Rectangle{
        color: "transparent"
    }

    Image {
        id: arrow
        y:icon.height
        width: parent.width
        visible: false
        source: "qrc:/image/arrowDown.svg"
        fillMode: Image.PreserveAspectFit
        anchors.horizontalCenter: parent.horizontalCenter
        horizontalAlignment: Image.AlignHCenter
    }
}

